]> dgit.raspbian.org Git - gnome-shell.git/commit
workspace: Use bounding-box property from layout manager
authorJonas Dreßler <verdre@v0yd.nl>
Sun, 31 May 2020 20:47:27 +0000 (22:47 +0200)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 4 Jun 2020 17:40:09 +0000 (17:40 +0000)
commit1ea22a5281c3bc7cae944d2e5f281c94a7b99bba
tree112b9c26d27e29d3cb15cbb799f9a0e5169bfa73
parent090057d2df231072df2bcf1c6bc5780b7c84eb48
workspace: Use bounding-box property from layout manager

Make use of the new bounding-box property we introduced for the
WindowClones layout manager in the last commit.

With this we can remove all the bounding box calculation code from the
WindowClone class and simply use the "notify::bounding-box" signal to
notify changes to our size. To make sure users of the WindowClone don't
break, we now have to convert the layout managers ClutterActorBox in our
getter function to a JS object.

Since we now also don't have to connect to the "destroy" signal of the
attached dialogs anymore, we can remove _disconnectSignals() and only
listen to "destroy" of the toplevel window.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1297
js/ui/workspace.js